<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<style>
	.fui-page{background:#f2f2f2}
    .fui-cell-group{width:100%;border-radius: 0.5rem;}
    .fullback-title{color:#999999;font-size:0.7rem;padding:0.75rem 0 0.5rem 0;}
    .fullback-info{}
    .fullback-info p{height:1rem;line-height: 1rem;font-size:0.625rem;color:#333;display: inline-block;padding:0 0.5rem 0 0;}
    .fullback-info p i{border:none;height:0.75rem;width:0.75rem;display: inline-block;background: #ff4753;color:#fff;font-size:0.4rem;line-height: 0.8rem;text-align: center;
        font-style: normal;border-radius: 0.75rem;-webkit-border-radius: 0.75rem;margin-right:0.25rem;}
    .fullback-remark{line-height: 1rem;font-size:0.6rem;color:#666;padding:0.2rem 0;}
	.fui-tab:after {
		height: 0;
	}
.right-living {height:1.2rem;line-height:1.15rem}
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fui-navbar .buybtn  {padding-left:0.3rem;background:#fff}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:1.95rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.68;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
.arrow-top {
  width: 0;   
  height: 0;   
  border-left: 10px solid transparent; 
  border-right: 10px solid transparent;
  border-bottom: 10px solid #000; 
  font-size: 0;  
  line-height: 0;
  margin-left:1.3rem
}
.coutag {padding:0.1rem 0.2rem;background:#ffedef;color:#db2e2a;font-size:0.55rem;border-radius: 0.2rem;}
.fui-icon-group .fui-icon-col {
    margin: 5px 0;
}
.label-gray {
	line-height:2.2;
	background-color:#f5f7fb;
	border: 1px solid #f5f7fb;
	color:#999;
	margin-right:0.3rem;
    font-size: 100%;
}
</style>
<link rel="stylesheet" href="../core/resource/components/swiper/swiper.min.css">
<div ng-if="pagedata.account" id="jyindex" class='fui-page fui-page-current  page-goods-detail' id='page-goods-detail-index'>
	<div ng-if="main.isapp!=1" ng-click="pagedata.showshareall=true" class="right-living" style="position: fixed;bottom:70%; border: 0 solid #ededed;padding-left:0.4rem;padding-right:0.2rem">
	   <span class="icon jinyunicon icon-fenxiang2" style="font-size:0.65rem;margin:0"></span> 分享
	</div>
	<!-- 找不到宝贝 -->
    <div ng-if="!pagedata.goods"  class="fui-header ">
        <div class="fui-header-left">
            <a class="back" id="btn-back"></a>
        </div>
        <div class="title">
            找不到宝贝
        </div>
    </div>
<!-- 汽车其他开始 -->
<div ng-class="{'fui-content basic-block pulldown':1, 'notbuy':pagedata.goods.canbuy}" style="top: 0.0rem;margin-top:0">
<div ng-if="!pagedata.goods" class='content-empty'>
    <i class='icon jinyunicon icon-search'></i><br/> 宝贝找不到了~ 您看看别的吧 ~<br/><a href="javascript:;" ng-click="access_json('jy_newcar/goods.index/')" class='btn btn-default-o external'>到处逛逛</a>
</div>
<i ng-if="pagedata.goods.qrcodeshare > 0" class="icon icon-qrcode" id="alert-click"></i>
<!--轮播图-->
<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true" style="position: relative;">
	<div ng-if="!pagedata.goods.video || pagedata.isvideo!=1" class="carousel-inner" role="listbox" style="max-height:20rem">
		<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.goods.images track by $index">
			<a href="javascript:;" ng-click="previewImage(pagedata.goods.image,pagedata.goods.images);">
				<img ng-src="{{tomedia(item) || '../core/resource/images/nopic.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
	</div>
	<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
	<div ng-if="!pagedata.goods.video || pagedata.isvideo!=1" id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
		<div class="fui-swipe-bullet" ng-repeat="item in pagedata.goods.images track by $index" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
	</div>
	<video ng-if="pagedata.goods.video && pagedata.isvideo==1" style="width:100%;max-height:20rem" ng-src="{{tomedia(pagedata.goods.video)}}" ng-poster="{{tomedia(pagedata.goods.image)}}" x5-playsinline="" playsinline="" webkit-playsinline="" preload="auto"  preload="auto" controls loop="loop">
	</video>
	<i ng-if="pagedata.shopset.fenxiao_app && pagedata.shopset.fenxiao_app!=0" ng-click="access_json(pagedata.shopset.fenxiao_app+'/qrcode//goodsid='+pagedata.goods.id)" class="icon icon-qrcode" id="alert-click"></i>
	<!--汽车活动，此处加载汽车活动展示页-->
	<div ng-if="pagedata.item.active_url" ng-include="pagedata.item.active_url"></div>
	<div ng-if="pagedata.goods.video" class="isvideo">
		<div class="c" style="width:6rem;margin:0 auto;">
		<span ng-class="{'videobtn':1,'active':pagedata.isvideo==1}" ng-click="pagedata.isvideo=1"><i class="icon icon-shipin1" style="font-size:0.55rem"></i> 视频</span>
		<span ng-class="{'videobtn':1,'active':pagedata.isvideo!=1}" ng-click="pagedata.isvideo=0"><i class="icon icon-lunbo" style="font-size:0.5rem;"></i> 图片</span>
		</div>
	</div>
</div>
<div ng-if="pagedata.goods" class="fui-cell-group fui-detail-group" style="padding-bottom:8px;border-top-left-radius:0;border-top-right-radius:0">
<!--秒杀完成-->
<div ng-if="pagedata.goods.active.rest_time" ng-class="{'seckill-container':1,'notstart':pagedata.goods.active.status==0}">
    <div class="fui-list seckill-list" style="" >
        <div class="fui-list-media seckill-price">
            &yen;<span>{{pagedata.goods.active.price || pagedata.goods.price}}</span>
        </div>
        <div class="fui-list-inner">
                <div ng-if="pagedata.goods.active.tag" class="text">
                    <span class="stitle" style="white-space:nowrap; overflow:hidden; max-width:2.6rem;">{{pagedata.goods.active.tag}}</span>
                </div>
            <div class="text" ng-if="pagedata.goods.api_data.no_oldprice!=1"><span ng-class="{'oldprice':pagedata.goods.api_data.no_oldpriceline!=1}">{{pagedata.goods.api_data.oldpricetitle || ''}}&yen;{{pagedata.goods.originalprice}}</span></div>
        </div>
    </div>
    <div class="fui-list seckill-list1" ng-if="pagedata.goods.active.nopercent!=1">
        <div class="fui-list-inner">
            <div class="text " ng-if="pagedata.goods.active.status==1">已出售 {{pagedata.goods.active.percent || 0}}%</div>
            <div class="text " ng-if="pagedata.goods.active.status==1"><span class="process"><div class="inner" style="width:{{pagedata.goods.active.percent || 0}}%"></div></span></div>
        </div>
    </div>
    <div class="fui-list seckill-list2">
        <div class="fui-list-inner">
            <div ng-if="pagedata.goods.active.status!=1" class="text ">距开始还有</div>
			<div ng-if="pagedata.goods.active.status==1" class="text ">距结束还有</div>
            <div class="text timer" ng-init="tool.time_down(pagedata.goods.active.rest_time)">
                <span class="time-day" style="width:auto;padding-right:0.1rem">{{pagedata.goods.active.rest_time.day}}天</span>&nbsp;<span class="time-hour">{{pagedata.goods.active.rest_time.hour}}</span>&nbsp;<span class="time-min">{{pagedata.goods.active.rest_time.minute}}</span>&nbsp;<span class="time-sec">{{pagedata.goods.active.rest_time.second}}</span>
            </div>
        </div>
    </div>
</div>
 <!--正常价格-->
    <div class="fui-cell" style='padding-bottom:0;padding-top:0.4rem'>
        <div class="fui-cell-text">
			<div class="text">
				<span style="font-size:1rem;">{{pagedata.goods.title}}</span>
				<span class="label label-success" style="background:{{main.syscolor||'#05c175'}};color:#fff;padding:0.2rem 0.3rem">{{pagedata.goods.api_data.add01 ||'新加车型'}}</span>
			</div>
			<div class="gray" style="margin-top:-.2rem">
				{{pagedata.goods.subtitle}}
			</div>
			<div class="text" style="padding-top:0.5rem">
				<span class="price" style="font-size:1rem;line-height:1.4rem"><span class="title15">{{pagedata.goods.price ||'0.00'}}</span>万</span>
			</div>
			<div class="syscolor" style="margin-top:-.2rem">
				<span class="" style="font-size:0.65rem">(预订：{{pagedata.goods.api_data.shoufee||'0.00'}}元)</span>
				 <span ng-if="pagedata.goods.api_data.jifen>0" style="font-size:0.65rem">送积分{{pagedata.goods.api_data.jifen}}个</span>
			</div>
		</div>
		<div class="fui-cell-remark lover" style="padding-left:0;margin-top:0.1rem">
			<div class="fui-icon">
				<div class="fui-tag" style="padding:0.2rem" >
					<i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata,'islike')" ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.islike !=1,'icon-xiai':pagedata.islike >0}" style="font-size:0.7rem"></i>
					<div class="subtitle">关注</div>
				</div>
			</div>
		</div>
    </div>
	<!--<div ng-if="pagedata.goods.store_isopen==1 && pagedata.stores.length>0 && pagedata.shopset.no_goodsstore==1" class="fui-cellone" style="padding:0.3rem 0.6rem;">
			<div class="fui-cellone-icon" style="margin-right:0.3rem">
				<i class="icon icon-map" style="font-size:0.6rem"></i>
			</div>
			<div class="fui-cellone-info">
					<div>
							<span class="red">经销商:</span>
							<span>{{pagedata.selectstore.title}}</span>
							<span style="color:{{main.syscolor || 'red'}}">{{pagedata.selectstore.pcd.city}}</span>
					</div>
					<i ng-if="!pagedata.goods.canbuy" class="coutag icon icon-xinxi"> 该汽车没库存？切换经销商试试!</i>
			</div>
			<div class="fui-cellone-remark" style="margin-right:0" href="javascript:;" ng-click="pagedata.showstores=true">
					切换经销商
			</div>
	</div>-->
</div>
<div class="fui-icon-group noborder col-2 radius" style="background:#fff;margin-top:0.5rem">
    <a class="fui-icon-col external">
        <div class="text">长×宽×高(mm)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs01}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">轴距(mm)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs02}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">行李厢容积(L)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs03}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">油箱容积(L)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs04}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">空载最小离地间隙(mm)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs05}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">整备质量(kg)</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs06}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">整车质保</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs07}}</div>
    </a>
	<a class="fui-icon-col external">
        <div class="text">电池保修政策</div>
		<div class="syscolor">{{pagedata.goods.api_data.cs08}}</div>
    </a>
</div>
<div class="fui-cell-group radius">
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">动力系统</div>
	<div class="fui-icon-group noborder col-2" style="background:#fff;">
		<a ng-if="pagedata.goods.api_data.dl01" class="fui-icon-col external">
			<div class="text">驱动方式</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl01}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl02" class="fui-icon-col external">
			<div class="text">发动机排量（L）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl02}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl03" class="fui-icon-col external">
			<div class="text">进气形式</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl03}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl04" class="fui-icon-col external">
			<div class="text">变速箱</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl04}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl05" class="fui-icon-col external">
			<div class="text">发动机最大功率（kW）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl05}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl06" class="fui-icon-col external">
			<div class="text">发动机最大扭矩（N·m）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl06}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl07" class="fui-icon-col external">
			<div class="text">电机最大功率(kw)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl07}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl08" class="fui-icon-col external">
			<div class="text">电机最大扭矩（N·m）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl08}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl09" class="fui-icon-col external">
			<div class="text">0-100km/h加速时间(s)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl09}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl10" class="fui-icon-col external">
			<div class="text">最高车速(km/h)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl10}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl11" class="fui-icon-col external">
			<div class="text">电池容量(kWh)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl11}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl12" class="fui-icon-col external">
			<div class="text">电池类型</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl12}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl13" class="fui-icon-col external">
			<div class="text">NEDC纯电续航里程(km)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl13}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl14" class="fui-icon-col external">
			<div class="text">WLTC纯电续航里程(km)</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl14}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl15" class="fui-icon-col external">
			<div class="text">最低荷电状态油耗（L/100km）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl15}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">环保标准</div>
			<div class="syscolor">{{pagedata.goods.api_data.huanbao}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl17" class="fui-icon-col external">
			<div class="text">电池快充时间（30%-80%）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl17}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dl18" class="fui-icon-col external">
			<div class="text">电池慢充时间（0%-100%）</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl18}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">电池智能恒温管理系统</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl19==1?'支持':'无'}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">预约充电</div>
			<div class="syscolor">{{pagedata.goods.api_data.dl20==1?'支持':'无'}}</div>
		</a>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">底盘系统</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.dipei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-icon-group noborder col-2" style="background:#fff;">
		<a class="fui-icon-col external">
			<div class="text">前悬架类型</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp01}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">后悬架类型</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp02}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">前轮制动器类型</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp03}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">后轮制动器类型</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp04}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dp05 && pagedata.goods.api_data.dp05!='无'" class="fui-icon-col external">
			<div class="text">轮毂</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp05}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dp06 && pagedata.goods.api_data.dp06!='无'" class="fui-icon-col external">
			<div class="text">轮胎规格</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp06}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.dp07 && pagedata.goods.api_data.dp07!='无'" class="fui-icon-col external">
			<div class="text">驾驶模式选择</div>
			<div class="syscolor">{{pagedata.goods.api_data.dp07}}</div>
		</a>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">外部配置</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.waipei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-cell" style="padding-top:0;font-size:0.7rem">
		<div class="fui-cell-text" style="width:auto">
			前无骨雨刷器
		</div>
		<div class="fui-cell-remark noremark">
			{{pagedata.goods.api_data.waipei02}}
		</div>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">内部配置</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.neipei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-icon-group noborder col-2" style="background:#fff;">
		<a ng-if="pagedata.goods.api_data.neipei02 && pagedata.goods.api_data.neipei02!='无'" class="fui-icon-col external">
			<div class="text">座椅材质</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei02}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.neipei03 && pagedata.goods.api_data.neipei03!='无'" class="fui-icon-col external">
			<div class="text">主驾座椅调节</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei03}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.neipei04 && pagedata.goods.api_data.neipei04!='无'" class="fui-icon-col external">
			<div class="text">副驾座椅调节</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei04}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">内后视镜防眩目</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei05}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">后排座椅比例放倒</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei06}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.neipei07 && pagedata.goods.api_data.neipei07!='无'" class="fui-icon-col external">
			<div class="text">车顶LED阅读灯</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei07}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">前排USB接口</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei08}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">后排USB接口</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei09}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">高保真扬声器</div>
			<div class="syscolor">{{pagedata.goods.api_data.neipei10}}</div>
		</a>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">安全配置</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.anpei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-cell" style="padding-top:0;font-size:0.7rem">
		<div class="fui-cell-text" style="width:auto">
			安全带未系提醒
		</div>
		<div class="fui-cell-remark noremark">
			{{pagedata.goods.api_data.anpei02}}
		</div>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">驾驶辅助</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.jiapei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">智能座舱</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.zhipei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-icon-group noborder col-3" style="background:#fff;">
		<a ng-if="pagedata.goods.api_data.zhipei02 && pagedata.goods.api_data.zhipei02!='无'" class="fui-icon-col external">
			<div class="text">中控液晶显示屏</div>
			<div class="syscolor">{{pagedata.goods.api_data.zhipei02}}</div>
		</a>
		<a ng-if="pagedata.goods.api_data.zhipei03 && pagedata.goods.api_data.zhipei03!='无'" class="fui-icon-col external">
			<div class="text">全液晶仪表</div>
			<div class="syscolor">{{pagedata.goods.api_data.zhipei03}}</div>
		</a>
		<a class="fui-icon-col external">
			<div class="text">流量</div>
			<div class="syscolor">{{pagedata.goods.api_data.zhipei04}}</div>
		</a>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">内饰颜色</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.shipei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-cell-title bold" style="padding-bottom:0.3rem">售后精品(选配)</div>
	<div class="fui-cell-title" style="padding-top:0.2rem;font-size:0.7rem">
		<span ng-repeat="(k,c) in pagedata.goods.api_data.shoupei01" class="label label-gray">{{c}}</span>
	</div>
	<div class="fui-cell-title" style="color:#999;font-size:0.65rem">*以上参数配置信息仅供参考，具体请以实车为准。</div>
</div>
<!--汽车详情开始-->
<div class="detail-block" style="position: relative;margin-top:0.5rem;border-radius: 0.5rem;width:100%;background:#fff;padding-bottom:0;padding-top:0.5rem">
		<!--购买后显示-->
		<div ng-if="pagedata.goods.isbuynum>0 && pagedata.goods.buyshow==1 && pagedata.goods.buycontent" style="padding:0.4rem 0.5rem;padding-top:0">
			<div class="content-block content-images" ng-bind-html="trust(pagedata.goods.buycontent)"></div>
		</div>
		<div ng-if="pagedata.goods.param.length>0" style="padding:0.4rem 0.5rem;padding-top:0">
			 <div class="fui-cell-group notop" style="background:#f2f2f2;margin-bottom:0.4rem">
				<div ng-repeat="p in pagedata.goods.param" class="fui-cell" style="padding:0.5rem">
					<div class="fui-cell-label md" style="color:#666">{{p.title}}</div>
					<div class="fui-cell-info  md" style="color:#333">{{p.value}}</div>
				</div>
			</div>
		</div>
        <div class="content-block content-images" ng-bind-html="trust(pagedata.goods.content)"></div>
</div>
<div class="fui-cell-group radius">
	<div class="fui-cell">
	<div class="fui-cell-text bold" style="padding-bottom:0.3rem">购车指南</div>
	</div>
	<div class="fui-icon-group noborder col-4" style="background:#fff;margin-top:0.5rem">
		<a class="fui-icon-col external">
			<div class="icon"><img src='../addons/jy_newcar/resource/images/buy1.png'></div>
			<div class="text">确认车辆</div>
			<div class="gray" style="font-size:0.6rem">获取报价</div>
		</a>
		<a class="fui-icon-col external">
			<div class="icon"><img src="../addons/jy_newcar/resource/images/buy2.png"></div>
			<div class="text">在线付定</div>
			<div class="gray" style="font-size:0.6rem">签署合同</div>
		</a>
		<a class="fui-icon-col external">
			<div class="icon"><img src="../addons/jy_newcar/resource/images/buy3.png"></div>
			<div class="text">提供证件</div>
			<div class="gray" style="font-size:0.6rem">验车过户</div>
		</a>
		<a class="fui-icon-col external">
			<div class="icon"><img src="../addons/jy_newcar/resource/images/buy4.png"></div>
			<div class="text">提车回家</div>
			<div class="gray" style="font-size:0.6rem">支付尾款</div>
		</a>
	</div>
</div>
<div id="jytuijie">
<div ng-if="pagedata.setting.no_itemhot!=1 && (pagedata.showcontent==1 || pagedata.showtype>=2)" class="fui-cell-group" ng-include="sys_html('goods/common/_hotgoods')"></div>
</div>
<div class='content-bttom' style="height:3rem">
</div>
</div>
<!-- 下面是弹窗系列 -->
<!-- 促销活动层 -->
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow' style="right:1.8rem"></div>
		<div ng-if="!pagedata.goods.share_title" class='content'>请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买</div>
		<div ng-if="pagedata.goods.share_title" class='content'>请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买{{pagedata.goods.share_title}}</div>
	</div>
</div>
</div>
</div>
<!--底部按钮-->
<div class="fui-navbar-tip" ng-if="pagedata.shopset.open_tips==1"><i class="icon icon-information" style="font-size:0.6rem;color:red"></i> {{pagedata.shopset.tips}}</div>
<div class="fui-navbar bottom-buttons">
	<a ng-if="pagedata.goods.merchid==0 && pagedata.goods.myshopmid==0" class="nav-item external" href="javascript:" ng-click="access_json(main.menus[0].action || 'jy_newcar/index/')">
        <span class="icon jinyunicon icon-dianpu"></span>
        <span class="label" >首页</span>
    </a>
	<a class="nav-item btn cartbtn seckill-notstart" ng-if="pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.itemtokefu();">
		<div class="fee-tag-nav">
			在线咨询
		</div>
	</a>
	<a class="nav-item btn buybtn" ng-if="pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.check_buy()">
		<div class="fee-tagup-nav">
			预定下单
		</div>
	</a>
	<a class="nav-item btn cartbtn disabled" ng-if="!pagedata.goods.canbuy"  href="javascript:">
		<div class="fee-disabled-nav">
			{{pagedata.goods.nobuytitle}}
		</div>
	</a>
</div>
<!--分享二维码弹层-->
<div id="showsharecode" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;bottom:0">
<div class="modal-bottom">
    <div ng-if="pagedata.commission_data.codeShare==1" class="alert-content">
        <div class="alert" style="padding:0;">
            <i class="alert-close alert-close1 icon icon-close"></i>
            <div class="fui-list alert-header" style="-webkit-border-radius: 0.3rem;border-radius: 0.3rem;padding:0;">
                <img ng-src="{{tomedia(pagedata.goodscode)}}" width="100%" height="100%" class="alert-goods-img" alt="">
            </div>
        </div>
    </div>

    <div ng-if="pagedata.commission_data.codeShare==2" class="alert-content">
        <div class="alert2">
            <div class="fui-list alert-header" style="-webkit-border-radius: 0.3rem;border-radius: 0.3rem;padding:0;">
                <img ng-src="{{tomedia(pagedata.goodscode)}}" width="100%" height="100%" class="alert-goods-img" alt="">
            </div>
        </div>
    </div>

    <div ng-if="pagedata.commission_data.codeShare!=1 && pagedata.commission_data.codeShare!=2" class="alert-content">
        <div class="alert" style="padding:0;background: #f5f4f9;border:none;-webkit-border-radius: 0.3rem;border-radius: 0.3rem;top:2rem;">
            <i class="alert-close alert-close1 icon icon-close" style="right: -0.7rem;top: -0.8rem;background: #e1040d;border:none;z-index:10"></i>
            <div class="fui-list alert-header" style="-webkit-border-radius: 0.3rem;border-radius: 0.3rem;padding:0;">
                <img ng-src="{{tomedia(pagedata.goodscode)}}" class="alert-goods-img" alt="">
            </div>

        </div>
    </div>
</div>
</div>
</div>

<div ng-if="pagedata.showshareall" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="min-height:auto;padding-bottom:3rem">
			<div class="fui-cell-group">
				<div ng-if="pagedata.shopset.tj_hwq==1" class="fui-cell">
					<div class="fui-cell-text c">
						<div class="text bold" ng-click="pagedata.tj()" style="font-size:0.8rem"><i class="icon icon-good"></i> 推荐好物</div>
						<div class="c" style="color:#999">(分享到好物圈)</div>
					</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-text c">
						<div class="text bold" onclick="$('#showsharecover').modal();" style="font-size:0.8rem">发送给朋友</div>
					</div>
				</div>
				<div ng-if="pagedata.goods.isposter==1" class="fui-cell">
					<div class="fui-cell-text c">
						<div class="text bold" ng-click="pagedata.showposter=true;pagedata.upposter()" style="font-size:0.8rem">生成海报</div>
					</div>
				</div>
			</div>
			<div class="fui-navbar"  style="padding:0.35rem 1rem">
				<a href="javascript:;" ng-click="pagedata.showshareall=false;pagedata.showposter=false" class="btn btn-danger btn-banf" style="margin:0;width:100%">取消</a>
			</div>
		</div>
		<div ng-if="pagedata.showposter" class="popup-center" style="width:70%;top:42%">
			<div class="fui-content c" style="height:auto;border: 1px solid #fdd8d6;border-radius:0.3rem;padding-bottom:0;background:#fff">
				<img ng-src="{{pagedata.posterimg || '../core/resource/images/nopic.jpg'}}" style="border-radius:0.3rem;width:100%;height:auto"/>
				<a class="btn btn-sm btn-danger-o external" style="line-height: 1.1rem;border-radius:1rem;margin:0.2rem;font-size:0.65rem;">长按保存图片</a>
			</div>
		</div>
	</div>
</div>
<div id="attention" ng-if="pagedata.showqrcode==1">
	<div class="attention-alert" style="width:80%;left:10%">
					<div class="attention-content" style="padding: 1.5rem 0;background:none;height:auto">
						<div class="col-jy-1" style="text-align: center;">
							<img ng-src="{{tomedia(pagedata.kefuqr) || '../core/resource/images/nopic.jpg'}}" alt=""style="width: 100%">
						</div>
						<p >长按指纹识别图中二维码</p>
					</div>
					<i class="icon icon-cuowu" ng-click="pagedata.showqrcode=0" style="font-size:1.5rem;color:#fff;position: absolute;top:105%;left:45%"></i>
	</div>
</div>
<!--弹目-->
<div ng-if="pagedata.showtanmus && !pagedata.pluginset.no_tanmu" class="video-sms-pane {{pagedata.transition?'transition':''}}">
		<div class="video-sms-text">
			<image class="video-sms-logo" ng-src="{{pagedata.tanmus[pagedata.nowmsgid].avatar}}"/>
			<span class="overflow-h"> 最新订单来自 {{pagedata.tanmus[pagedata.nowmsgid].nickname}}</span>
		</div>
</div>
<style type="text/css">
    .share-text1{text-align: center;padding:0.5rem 0.5rem 0;font-size:0.6rem;color:#666;line-height: 1rem;}
    .share-text2{text-align: center;padding:0 0.5rem 0.5rem;font-size:0.6rem;color:#666;line-height: 1rem;}
</style>
<div ng-include="sys_html('shop/_selectstores','','','jy_weishop')"></div>
<script type="text/javascript">
scope.pagedata.nodata_pic='../core/resource/images/goods_nodata.jpg';
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
		
});
scope.pagedata.tj=function(){
	var jsCheckObject={
		'appid':jssdkconfig.appId,
		'timestamp':jssdkconfig.timestamp,
		'noncestr':jssdkconfig.nonceStr,
		'signature':jssdkconfig.signature,
		'url':scope.pagedata.goods.url
		};
	if(scope.pagedata.goods.status==0){
		var status =2;
	}else if(scope.pagedata.goods.status==2){
		var status =3;
	}else{
		var status =1;
	}
	var sku={
		'sku_id':scope.pagedata.goods.id, 
		'price':(scope.pagedata.goods.price)*100,
		'original_price':(scope.pagedata.goods.originalprice)*100,
		'status':status
	}
	var productObject={
		'item_code':scope.pagedata.goods.id,
		'title':scope.pagedata.goods.title,
		'desc':scope.pagedata.goods.subtitle,
		'category_list':scope.pagedata.jy_hwqset.category_list?scope.pagedata.jy_hwqset.category_list:{"category_id": 4342,"category_name": "运动裤"}, //类目列表
		'image_list':scope.pagedata.images,
		'src_h5_path':scope.pagedata.url,
		'sku_list':sku,
		
	};
	//console.log(productObject)
	var jsCheckObject1 = encodeURIComponent(JSON.stringify(jsCheckObject))
	var productObject1 = encodeURIComponent(JSON.stringify(productObject))
	wx.openBusinessView({
	  businessType: 'friendGoodsRecommend',
	  queryString: 'jsCheck='+jsCheckObject1+'&product='+productObject1,
	  success: function (res) {
	  //{"err_msg":"errmsg","extraData":{}}
	  },
	  fail: function (res){
		scope.message(res.errMsg);
	  // alert('请检查参数配置或者公众号权限');
	  //{"err_msg":"errmsg"}
	  }
	})
}
//滚动加载
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.showtype==0){
		if(scope.pagedata.scroll_bottomtimes){
			scope.pagedata.scroll_bottomtimes++
		}else{
			scope.pagedata.scroll_bottomtimes=1;
		}
		if(scope.pagedata.scroll_bottomtimes==1){
			scope.pagedata.showupto = 1
		}
	}
}
scope.pagedata.goDetail=function(id){
	scope.pagedata.showtype = 0;
	scope.pagedata.showpingjia=0;
	if(id=='jycontent'){
		scope.pagedata.showtype = 2;
	}
	if(id=='jytuijie'){
		scope.pagedata.showtype = 3;
	}
	if(id=='jypingjia'){
		scope.pagedata.showtype = 1;
		scope.pagedata.showpingjia=1;
		id='jyindex';
	}
	scope.$evalAsync();
	setTimeout(function(){
		var element = document.getElementById(id);
		element.scrollIntoView();
		element.scrollIntoView(false);
		element.scrollIntoView({block: "start"});
		element.scrollIntoView({behavior: "smooth", block: "start", inline: "nearest"});
	},200);
}

//获取关注
scope.pagedata.setlike=function(){
	scope.post_json('jy_weishop/goods.detail/like/',{},function(res){
		scope.message(res);
	});
}
//加入清单
scope.pagedata.addqingdan=function(){
	scope.post_json('jy_weishop/sale.qingdan/add/',{'goodsid':scope.pagedata.goods.id},function(res){
		scope.message(res);
	});
}
//if(scope.pagedata.goods.type==3 || (scope.pagedata.goods.type==0 && scope.pagedata.goods.isverify==1)){
	scope.pagedata.getstores=function(lat_lng){
		var id=scope.pagedata.goods.id;
		scope.post_json('jy_weishop/get_data/getstores/',{'lat_lng':lat_lng,'id':id},function(res){
				scope.pagedata.stores =res.stores
				scope.pagedata.stores_count =res.stores_count
				if(!scope.pagedata.post.storeid){
					scope.pagedata.post.storeid = res.stores[0]?res.stores[0].id:0;
				}
				scope.$evalAsync();
		});
	}
	scope.pagedata.getstores(scope.pagedata.lat_lng);
//}
scope.pagedata.showstoreitem=function(){
	$('#showstoreitem').modal();
}
scope.pagedata.check_buy=function(){
	var goodsid=scope.pagedata.post.goodsid
	var num=scope.pagedata.post.num
	var optionsid=scope.pagedata.post.optionsid
	var addressid=scope.pagedata.post.addressid
	var storeid=scope.pagedata.post.storeid
	scope.get('jy_newcar/goods.detail/check_buy/isresurl=1&goodsid='+goodsid+'&num='+num+'&optionsid='+optionsid+'&addressid='+addressid+'&storeid='+storeid,function(resurl){
		scope.access_json(resurl);
	});
}
</script>
<script>
scope.pagedata.issocketmsg=false;
scope.pagedata.tanmuspage=0;
scope.pagedata.isa2=true;
scope.pagedata.isno_coupontop=1;
scope.pagedata.gettanmus=function() {
	if(!scope.pagedata.issocketmsg){
			scope.pagedata.nowmsgid=0;
			scope.get('jy_weishop/get_data/gettanmus/page='+scope.pagedata.tanmuspage,function(res){
						//console.log(res);
						scope.pagedata.tanmus=res.list
						if(scope.pagedata.tanmus.length>0){
							scope.pagedata.tanmuspage++;
							scope.pagedata.up_oldtanmu();
						}
			});
	}
}
//刚进入时；如果没有新订单消息，就弹储备订单消息
if(scope.pagedata.setting.no_tanmu!=1){
		setTimeout(function(){
			scope.pagedata.gettanmus();
		},2000);
}
scope.pagedata.up_oldtanmu=function() {
		if(scope.page.action=='goods.detail'){
			var i=scope.pagedata.nowmsgid;
			if(i<scope.pagedata.tanmus.length){
				set_tanmu(scope.pagedata.tanmus[i].nickname,scope.pagedata.tanmus[i].avatar,scope.pagedata.tanmus[i].time);
			}else{
				scope.pagedata.gettanmus();
			}
		}else{
			return false;
		}
}
function set_tanmu(nickname,avatar,time) {
		scope.pagedata.nowmsgid++
		scope.pagedata.showtanmus=true
		scope.$evalAsync(scope.pagedata.showtanmus);
		setTimeout(function(){
			scope.pagedata.transition=true
			scope.$evalAsync(scope.pagedata.transition);	
		},300);
		setTimeout(function(){
			scope.pagedata.showtanmus=false
			scope.pagedata.transition=false
			scope.$evalAsync(scope.pagedata.showtanmus);	
		},2000);
		setTimeout(function(){
			//等待5秒，如果没有新的订单消息，就弹储备订单消息
			scope.pagedata.issocketmsg=scope.pagedata.issocketmsg?scope.pagedata.issocketmsg:false;
			if(!scope.pagedata.issocketmsg && scope.page.action=='index'){
				scope.pagedata.up_oldtanmu();
			}
		},4000);
}
scope.tool.get_list('jy_weishop/goods.detail/getcomments/goodsid='+scope.pagedata.goods.id,true);
if(scope.main.isapp!=1){
setTimeout(function(){
	var jypingjia = $("#jypingjia").offset().top;
	var jycontent = $("#jycontent").offset().top;
	scope.pagedata.jytuijie = $("#jytuijie").offset().top;
	console.log(jypingjia);console.log(jycontent);console.log(scope.pagedata.jytuijie);
	$(window).unbind('scroll');
	$(window).scroll(function(){
		if(scope.page.action!='goods.detail'){
			return false;
		}
		var scrollTop =parseInt($(this).scrollTop());//滚动高度
		scrollTop +=60;
		//console.log(scrollTop);
		if(scope.pagedata.showpingjia==1){
			scope.pagedata.scroll_bottom=function(){
				scope.tool.get_list('jy_weishop/goods.detail/getcomments/goodsid='+scope.pagedata.goods.id+'&type='+scope.pagedata.comments_type);
			}
			return false;
		}
		if(scope.pagedata.showcontent!=1){
			scope.pagedata.scroll_bottom=function(){
				if(scope.pagedata.showcontent!=1){
					scope.pagedata.showcontent=1
					scope.$evalAsync();
				}
			}
		}
		setTimeout(function(){
			if(scope.pagedata.showcontent!=1 && (scrollTop>200 || jycontent<480)){
				scope.pagedata.showcontent=1
				scope.$evalAsync();
			}
			if(jypingjia>scrollTop && scope.pagedata.showtype!=0){
				console.log('index');
				scope.pagedata.showtype=0
				scope.$evalAsync();
			}else if(jypingjia<=scrollTop && jycontent>scrollTop && scope.pagedata.showtype!=1){
				console.log('jypingjia');
				scope.pagedata.showtype=1
				scope.pagedata.showcontent=1
				scope.$evalAsync();
			}else if(jycontent<=scrollTop && scope.pagedata.jytuijie>scrollTop && scope.pagedata.showtype!=2){
				console.log('jycontent');
				scope.pagedata.showtype=2
				scope.pagedata.jytuijie = $("#jytuijie").offset().top;
				scope.$evalAsync();
			}else if(scope.pagedata.jytuijie<=scrollTop && scope.pagedata.showtype!=3){
				console.log('jytuijie');
				scope.pagedata.showtype=3
				scope.$evalAsync();
			}
		},500);
	});
},2000);
}else{
	scope.pagedata.showcontent=1;
}
scope.pagedata.selectstores=function(item){
	console.log('选择门店'+item.id);
	scope.pagedata.post.storeid=item.id;
	scope.get('jy_weishop/get_data/get_upgoods/storeid='+item.id+'&id='+scope.pagedata.goods.id,function(res){
		scope.pagedata.goods.canbuy=res.canbuy;
		scope.pagedata.selectstore=item;
		scope.$evalAsync();
	});
}
scope.pagedata.itemtokefu=function(){
	if(scope.pagedata.shopset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
		//H5小程序环境下
		var logo=scope.tomedia(scope.pagedata.account.logo);
		var title=scope.pagedata.account.title
		wx.miniProgram.navigateTo({
			url: '/pages/kefu/index?logo='+logo+'&title='+title
		})
	}else{
		if(scope.pagedata.goods.merchid!=0 && scope.pagedata.goods.merch.showkefu==1){
			scope.access_json('jy_kefu/home//pn=jy_merch&pid='+scope.pagedata.goods.merchid);
		}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.goods.merchid==0 && (!scope.pagedata.shopset.kefutype_h5 || scope.pagedata.shopset.kefutype_h5==0)){
			scope.access_json(pagedata.shopset.kflink);
		}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.goods.merchid==0 && scope.pagedata.shopset.kefutype_h5==1){
			scope.pagedata.kefuqr=scope.pagedata.shopset.kf_accountimg;
			scope.pagedata.showqrcode=1;
		}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.goods.merchid==0 && scope.pagedata.shopset.kefutype_h5==2){
			scope.access_json(scope.pagedata.shopset.appkflink)
		}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.goods.merchid==0 && scope.pagedata.shopset.kefutype_h5==3){
			scope.access_json(scope.pagedata.shopset.workerh5url);
		}else if(scope.pagedata.setting.nokefu2!=1 && scope.pagedata.goods.merchid==0 && scope.pagedata.shopset.kefutype_h5==4){
			scope.pagedata.kefuqr=scope.pagedata.shopset.guwenkfewm;
			scope.pagedata.showqrcode=1;
		}
		scope.$evalAsync();
	}
}

scope.pagedata.upposter=function(){
	scope.get('jy_weishop/goods.detail/upposter/goodsid='+scope.pagedata.goods.id,function(res){
		console.log(res)
		scope.pagedata.posterimg=res.posterimg;
		scope.$evalAsync();
	});
}
</script>
